﻿using SportsPlatform.Base;
using SportsPlatform.Query.SportBusiness.EventsSession;
using SportsPlatform.Dto.SportBusiness.EventsSession;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SportsPlatform.Query.PermissionManagement.BaseQuery;
using Microsoft.AspNetCore.Mvc;

namespace SportsPlatform.SportBusiness.ISportBusiness
{
    /// <summary>
    /// 比赛项目场次信息接口服务
    /// </summary>
    public interface IEventsSessionService
    {
        /// <summary>
        /// 场次信息同步
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> EventsSessionInfoSynchronization(List<EventsSessionInfoSynchronizationQuery> query);

        /// <summary>
        /// 新增项目场次信息
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> AddEventsSessionInfo(AddEventsSessionInfoQuery query);

        /// <summary>
        /// 更改项目场次信息
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> UpdteEventsSessionInfo(UpdteEventsSessionInfoQuery query);

        /// <summary>
        /// 删除项目场次信息
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<BaseResultDto> DeleteEventsSessionInfo(DeleteOrGetModelQuery query);

        /// <summary>
        /// 获取比赛项目场次树型数据
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<ResultListDto<EventsSessionTreeInfoDto>> GetEventsSessionTreeInfo(GetEventsSessionTreeInfoQuery query);


        /// <summary>
        /// 获取比赛项目场次数据列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        Task<ResultListDto<GetEventsSessionListDto>> GetEventsSessionList([FromBody] GetEventsSessionListQuery query);
    }
}
